﻿#ifndef B3MAINWINDOW_H
#define B3MAINWINDOW_H
#include "mainwindow.h"
#include "SQLWidget/NewDataBase.h"
#include "SQLWidget/SelectDataBase.h"
#include "SQLWidget/DataMeasurementDialog.h"
#include "SQLWidget/MeasureSpecDockWidget.h"
#include "AutoFocus/AutoFocusThread.h"
#include "dialog_movetorelativepos.h"
#include "Measure/RecipeDockWidget.h"
#include "Measure/MeasureData.h"
#include "Measure/SemiAutoMeasureDockWidget.h"
#include "LampControl/LampToolBar.h"

class LampControl;
class B3MainWindow : public MainWindow
{
    Q_OBJECT
public:
    B3MainWindow(QWidget *parent = 0);
public slots:
    void autoFocus();
private slots:
    void newDataBase();
    void newMeasurement();
    void displayMeasureDialog(QString DataBaseName, QString SqlDirPath);
private:
    void setupLampControl(QSettings &settings);
    void setupAutoFocus(QSettings &settings);
    void setupSpecDockWidget();
private:
    SelectDataBase * m_selectDataBase;
 //   DataMeasurementDialog * m_dataMeasurement;
//    MeasureSpecDockWidget * m_measureSpecDockWidget;
    AutoFocusThread * m_autoFocusThread;
    Dialog_MoveToRelativePos m_MoveToRelativePos;

    RecipeDockWidget * m_recipeDockWidget;
    SemiAutoMeasureDockWidget * m_semiAutoMeasureDockWidget;
    MeasurementData m_measurementData;

    LampControl * m_pTopLamp;
    LampControl * m_pBottomLamp;
    LampToolBar * m_pLampToolBar;
};

#endif // B3MAINWINDOW_H
